﻿using SqlSugar;

namespace OnWork.Admin.Util.Configs
{
    /// <summary>
    /// 连接字符串配置
    /// </summary>
    public class ConnectionConfiguration
    {
        /// <summary>
        /// 连接名称
        /// </summary>
        public string Name { get; set; } = "";

        /// <summary>
        /// 连接字符串
        /// </summary>
        public string ConnectionString { get; set; } = "";

        /// <summary>
        /// 默认数据库配置
        /// </summary>
        public DbType DbType { get; set; } = DbType.Sqlite;

        /// <summary>
        /// 自动关闭连接
        /// </summary>
        public bool IsAutoCloseConnection { get; set; } = true;

        /// <summary>
        /// 是否 驼峰转下划线方法
        /// </summary>
        public bool IsToUnderLine { get; set; } = false;
    }
}